from _decimal import Decimal
from deepdiff import DeepDiff

print(DeepDiff(b'hello','hello',ignore_string_type_changes=True))

# 数值类型
t1 = Decimal('10.01')
t2 = 10.01
print(DeepDiff(t1,t2))
print(DeepDiff(t1,t2,ignore_numeric_type_changes=True))

t3 = 10.0
t4 = 10
print(DeepDiff(t1,t2))
print(DeepDiff(t1,t2,ignore_numeric_type_changes=True))

t5 = '111'
t6 = 111
print(DeepDiff(t5,t6))
print(DeepDiff(t5,t6,ignore_numeric_type_changes=True))


